package demo

import "github.com/gin-gonic/gin"

func Routers(r *gin.Engine) {
	v1 := r.Group("v1")
	{
		v1.GET("/demo", Demo)
		//v1.GET("/user/:name/:action", ApiParams)
		v1.GET("/user/:name/*action", ApiParams)
		v1.GET("/user", UrlParams)
		v1.POST("/form", FormPost)
		v1.POST("/post", BasicPost)
		v1.POST("/upload/single", SingleFileUpload)
		v1.POST("/upload/multi", MultiFileUpload)
		v1.POST("/bind/request_body", BindRequestBody)
		v1.POST("/bind/form", BindForm)
		v1.GET("/bind/url/:name/:id", BindUrl)
		v1.GET("/diyvalid", DiyValidtor)
		v1.GET("/orm/test1", OrmTest1)
		v1.GET("/orm/test2", OrmTest2)
		v1.GET("/orm/test3", OrmTest3)
		v1.GET("/orm/update", OrmUpdate)
		v1.GET("/orm/delete", OrmDelete)
		v1.GET("/orm/chain", OrmChain)
		v1.GET("/string", TestString)
		v1.GET("/file", TestFile)
		v1.GET("/time", TestTime)
		v1.GET("/re", TestRe)
		v1.GET("/json", TestJson)
		v1.GET("/reflect", TestReflect)
		v1.GET("/net", TestNet)
	}
}
